import { defHttp } from '/@/utils/http/axios'

enum API {
	mapUrl = 'Maps/Index',
	mapDepUrl = 'Maps/RoleMaps',
	peopleCount = 'areas/people-counting',
	warningCount = 'Warnings/WarningCount',
	allMaps = 'Maps/Minimal',
}

export function getMap(params?) {
	return defHttp.get({ url: API.mapUrl, params })
}
export function getAllMap(params?) {
	return defHttp.get({ url: API.allMaps, params })
}
export function getDepMap(params?) {
	return defHttp.get({ url: API.mapDepUrl, params })
}
export function getPeopleCounting(params) {
	return defHttp.get({ url: API.peopleCount, params })
}
export function getWarningCount(params) {
	return defHttp.get({ url: API.warningCount, params })
}
